import request from '@/utils/request'

// 图审数据分页查询
export function getList(params) {
  return request({
    url: '/technology/design/Institutions/drawingAudit/selectPage',
    method: 'POST',
    params
  })
}

// 图审数据添加
export function insertDrawingAudit(data) {
  return request({
    url: '/technology/design/Institutions/drawingAudit/insert',
    method: 'POST',
    data
  })
}

// 图审数据修改
export function updateDrawingAudit(data) {
  return request({
    url: '/technology/design/Institutions/drawingAudit/update',
    method: 'POST',
    data
  })
}

// 图审数据修改查询
export function selectDrawingAudit(params) {
  return request({
    url: '/technology/design/Institutions/drawingAudit/findId',
    method: 'post',
    params
  })
}

// 图审数据删除
export function delDrawingAudit(data) {
  return request({
    url: '/technology/design/Institutions/drawingAudit/del',
    method: 'post',
    data
  })
}

// 图审阶段文件下载
export function downloadList(params) {
  return request({
    url: '/drawingStage/stage/list',
    method: 'post',
    params
  })
}

// 查询合同项目的名称
export function selectProjectName(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'post',
    params
  })
}

// 审核进度详情
export function getAuditSchedule(params) {
  return request({
    url: '/technology/gdo/attache/auditSchedule/getProfession',
    method: 'post',
    params
  })
}

// 审核进度添加
export function insertAuditSchedule(data) {
  return request({
    url: '/technology/gdo/attache/auditSchedule/insert',
    method: 'POST',
    data
  })
}

// 审核进度修改
export function updateAuditSchedule(data) {
  return request({
    url: '/technology/gdo/attache/auditSchedule/update',
    method: 'POST',
    data
  })
}

// 审核进度修改查询
export function selectAuditSchedule(params) {
  return request({
    url: '/technology/gdo/attache/auditSchedule/findId',
    method: 'post',
    params
  })
}

// 审核进度删除
export function delAuditSchedule(data) {
  return request({
    url: '/technology/gdo/attache/auditSchedule/del',
    method: 'post',
    data
  })
}

// 审核进度文件意见上传
export function updateDrawingStage(data, onUploadProgress) {
  return request({
    url: '/technology/updateDrawingStage',
    method: 'post',
    onUploadProgress,
    data
  })
}

